import { defineConfig } from "vite";
import VitePluginStyleInject from 'vite-plugin-style-inject';

export default defineConfig({
    build: {
        target: "es2015",
        lib: {
            entry: "src/laypage.js",
            name: "laypage",
            fileName: (format) => `laypage.${format}.js`,
        },
    },
    plugins: [VitePluginStyleInject()],
});
